/* 
 * File:   cNumber.h
 * Author: big
 *
 * Created on 18 Ноябрь 2010 г., 14:02
 */

class cNumber
{
    private bool sign;
    private bool* integer;
    private int iSize;
    private bool* fractional;
    private int fSize;

public:
    cNumber(double number, int max = 16);
    cNumber(int number);

    bool getSign();
    void setSign();

    bool getI(int i);
    void setI(int i, bool value);

    bool getF(int i);
    void setF(int i, bool value);

    int getSizeI();
    int getSizeF();

    void show(int system = 10);

    friend cNumber &operator+(cNumber &number1, cNumber &number2);

    ~cNumber();
};
